<template>
  <div id="app">
	  <Header/>
    <div>
      <el-link href="/login">登录页</el-link>
	  <div @click="linkTo">书页</div>
      <el-link type="success" @click="show">成功链接</el-link>
      <el-link type="warning">警告链接</el-link>
      <el-link type="danger">危险链接</el-link>
      <el-link type="info">信息链接</el-link>
    </div>
	<mt-button type="primary">primary</mt-button>
    <router-view/>
  </div>
</template>
<script>
	import Header from "./components/header.vue"
	import { Toast } from 'mint-ui';
	export default{
		name:'app',
		components:{
			Header
		},
		methods:{
			linkTo(){
				//第二种跳转方式 push
				this.$router.push('/book');
			},
			 show(){
				 Toast({
					 message:'这是消息',
					 duration:1000,
					 position:'top'
				 })
			 }
		}
	}
</script>
<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  /*浏览器 字体抗锯齿*/
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

#nav {
  padding: 30px;
}

#nav a {
  font-weight: bold;
  color: #2c3e50;
}

#nav a.router-link-exact-active {
  color: #42b983;
}
</style>
